﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Netfraction.Network.Protocol.UCMD.Handler
{
    public class HandlerCMD : ProtocolMessageActionHandler
    {
        public enum ConextTypesEnum : int
        {
            HubCommand = 1,
            UserListCommand = 2,
            SearchResultCommand = 4,
            FileListCommand = 8
        }

        public HandlerCMD()
            : base()
        {
            mParameterCodes = new List<string>(new string[] {"RM", "CT", "TT", "CO", "SP", "PR"});

            mSupportedConnectionStates = new List<RemoteMachine.ConnectionState>();
        }

        #region ProtocolMessageActionHandler Members

        public override string ProtocolActionCode
        {
            get { return "CMD"; }
        }

        public override bool HandleProtocolMessage(RemoteMachine.Node node, ProtocolMessage message, IEnumerable<ProtocolFeature> extenders)
        {
            if (!(node is RemoteMachine.Hub))
                return false;

            Console.WriteLine("in CMD handler");
            if (message.Parameters.Count == 3)
            {
            }
            return true;
        }

        #endregion
    }
}
